Fix finalization of GROUPING in parser, and fix explain output
for GROUPING nodes in subqueries.