SPARK-2519 part 2. Remove pattern matching on Tuple2 in critical section...

...s of CoGroupedRDD and PairRDDFunctions

This also removes an unnecessary tuple creation in cogroup.
If we're using functional style anyway, do we really expect to see any sort of remotely noticeable gain from doing these kinds of optimizations?