Add grouping by key path

This allows grouping objectivs by their return value for a specific keypath.