Changes .map to .mapToPair when using the reduceByKey functionality for
a given DStream object, since a cast to JavaPairDStream is needed