Fixed cascading errors for undeclared NamedTypes