Add layerGroup#getLayers and tests. Fixes #1460