Improved aggregation optimizer- less queries, fixed MySQLOptimizer tuples=n optimization not being called
Merge pull request #94 from andig/agg-fix

Improved aggregation optimizer