Queries "group by" that contain a subquery with an aggregate function returned the wrong result in some cases.

git-svn-id: http://h2database.googlecode.com/svn/trunk@5022 e6896862-9d19-0410-bfb3-e9fa5d50e656