added ability to filter a resource iterator with an object instead of an array.