SPARK-1728. JavaRDDLike.mapPartitionsWithIndex requires ClassTag