For #1289: Configurable iteration element name

- update UI in Section Settings dialog
- don't assume a fixed iteration element name
- fix getAllControlNamesXPath which could return duplicates
- refactoring