Fixes #650 - issue when doing multiple aggregation expressions on the same identifier
Merge pull request #657 from systay/650

Fixes #650 - issue when doing multiple aggregation expressions on the same identifier