fix(generator): even better error messages on unresolved types