[SPARK-1259] Make RDD locally iterable