added filtering to individual entities as well as arrays of entities. This allows for the same filtering methods from the model manager to be used on the models directly or on an array of models