Rewrite Single Distinct Aggregation into GroupBy

Follow https://github.com/facebook/presto/issues/1472
rewrite Single Distinct Aggregation into GroupBy