ko registerEntityType ctor fix