Support pluck-like patterns with groupBy, withFields, hasFields and without