Consistent serialization/deserialization between namespaces