[Do Not Merge] Minimize mtype.c diff

**Please, do not merge the pull request.** I am still working on it as well as consider different approaches.

In the upcoming dmd release, type functions are almost never merged and we do not need most of the mtype mangling patch.