Add removesKeysWithNullValues setting to serialization and copying.

Preserve removesKeysWithNullValues through copying and serialization.