Fix for 1866
- CLGroup: ensure that the element list has the correct parent set
- CLGroup: allow other Groups to be added as child
- Parser: properly detect whether a group is part of another group