Make hyperUniques work for groupBy

Bug fix and test.