References #1429 - Moved collapsible set creation into template code.
References #1429 - Repaired collapsible set creation.
Fixes #1429 - Collapsible sets close when another one is opened.