Add removesKeysWithNullValues to serialization and copying.

Preserve removesKeysWithNullValues through copying and serialization.