Making classes used in GpuRDD serializable
Adding a sanity check to GpuRDD to make sure it works fine.