Fix #2028 "Moving iteration up in a section template removes iteration"

- was happening when inserting element before element of same name
- insert point path was pointing to location after insert, not before
- fixed by using sibling index when available
- add test