Fix SPARK-2011 on IndexedRDD