Now layers can be accessed through obj.map.layers by index or by name (like obj.map.layers.ground or obj.map.layers['Object Positions']).