Auto locate dowels on multi-strata object

OK, done, but I realize it’s working on curves individually.
If I try to place two curves in a branch (region with a hole), it falls apart.
In this post, it seemed to work though.

EDIT : Actually, it does work with regions that have holes ; it’s the rest of the definition that falls apart, as it’s not robust enough to deal with this kind of topology, I guess.