AST transformation for DISTINCT aggregates.
Unit tests for DISTINCT aggregate AST transformations.
Merge pull request #220 from harveyfeng/rewrite

AST transformations for DISTINCT aggregates