findSplit consolidation

Fixes a few bugs, improves implementation, adds unittests
findsplit for elements

Adds element overloads for findSplit and findSkip.
Indentation in findSplit
More improvements in findSplit

Avoids a branch and a save: The result is always in parts[1].
format tweak in findSplit, as suggested in review
Improve implementation of findSplit familly functions

Also reduced volume of unittests, while improving quality of tests