Create correct lazy proxy type for deserialized references when possible. For dealing with inherited types.