why is this additional step here needed and then in_type needs to be tested again? why doesnt `nameToType` already do the job?