This issue described above can be fixed by delaying resolution of TypeScopeImpl#factory after deserialization until resolveFactory() is called.