type_common: add tbm_##res##_str and tbm_error_str