[DDMD] Fixup for main generation code

`code` is the name of a backend type, and therefore confuses the converter.  Not easy to fix, and not worth it.

Use strlen instead of sizeof hack - `code` is a `const(utf8_t)*` in D and has no length available.

Add const.