Honor serialization settings and IObjectFactory