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.
Wait, actually, my understanding of this loop is that it's iterating over every record within the partition.  Am I missing something?