Add aggregate operations that support grouping by a keypath

Closes #634
Update fetching documentation