reference objects when adding to array-types