2.6.x backport of [GEOS-6374] Added support for non-default style on layer in layergroup

Backport for GEOS-6374 to stable branch.