Make getLayerStatesArray return an array of layer states