merge group by clauses as well

like rails 3
spec for merged group by clauses
Merge pull request #30 from ccutrer/mergegroup

merge group by clauses as well