Remove Type#name and Type#defaultName
Align new error message expectations.