DRILL-1171: Create Drill's implementation of ReduceAggregatesRule.
DRILL-1342: Fix nullability handling of aggregate functions.
WIP for reduce aggregates.