Use one kind of serialization contexts for both serialization and deserialization.
When deserializing objects mark the serialization context they came from.