Add setLayers() to LayerGroup

Adds ability to set all layers in a LayerGroup en mass.

This is useful when needing to sync up the layers with
those stored in a separate location, for example.

Also provides parity with the existing getLayers() method

Fixes #2991