Properly mangle names for user-defined types.