SPARK-2519. Eliminate pattern-matching on Tuple2 in performance-critical...

... aggregation code