Fixes orm reconstruction calls on dynamically generated model classes.