Issue #1548948 by damiankloip: Added ability for field handlers to declare whether they can be 'grouped by' or not.