GEOS-5847 - fixed issue with nested layer groups

Late binding of layer groups containing other layergroups was not always working