ir: Add wchar and dchar support.