Handle unknown type_code
for model contracts
#8887
Merged
type_code
for model contracts
#8887