added set and _prepareModel methods, in order to modify hte way the collection checks if an object is a model