Translate GROUP BY from Hive AST to Optiq RelNode.

Some clean-ups.