Allow syntax_type_name to handle immediates too.
Expose syntax_type_name in the header for convenient debugging code.