Fix for bug with EntityType.createEntity with config containing nested complex objects.