Improve performance of group

Dispatch manually like the recent change to aggregate. This can achieve
upto 2x-3x performance increase.