Made TablePartition Java serializable.