introspection: add type_name and make char* const