fixed using object as array

fatal error on second push when pushing MongoId objects