[DDMD] Work around multiple-static-variable bug in dmd by renaming the arrays

DMD can't handle static vars with the same name in the same function.

Was re-introduced by #2414