LayerManagerCommands: fixed array handling