make array filters work with objects