[SPARK-1161] Changing to pickleFile and saveAsPickleFile.

Use PickleSerializer with batch size 1024.