PartitionFunction: add serialization test for missing numPartitions