Added support for complex group by statements with multiple levels of grouping and multiple levels of projected anonymous types.