DRILL-1171: Create Drill's implementation of ReduceAggregatesRule, including a new CastHigh function.
DRILL-1342: Fix nullability handling of aggregate functions.