new method 'add' for objects without a key
replacing array in layer with 'proper' object collection