Fix for EntityType.createEntity with previously constructed complextype in ko