Adds support for 'filter' method to Collection class