AST transformation for DISTINCT aggregates.
Unit tests for DISTINCT aggregate AST transformations.