Fix JavaRDDLike.flatMap(PairFlatMapFunction) (SPARK-668).

This workaround is easier than rewriting JavaRDDLike in Java.