fix group by queries on system tables with limit or the same aggregation twice
Merge pull request #1414 from crate/b/fix_group_with_limit

fix group by queries on system tables with limit or the same aggregation...