Support for aggregates (metagroup+group_by).