Fix groupBy/count handling

Related to https://github.com/querydsl/querydsl/issues/1055#issuecomment-64798886