better value handling for filterBy and groupBy in the collection class