Implement SQL-like count(*) semantics workaround in QueryInterpreter.

This makes interpreted aggregations behave the same way as compiled
ones after 46bd56851db69530c09d48c2fd232378fef9939a.

No new test (AggregationTest.testGroupBy was broken on MemoryDriver).