Refactor macros in arrayop.c
Merge pull request #2237 from yebblies/expandm

[DDMD] Expand macros in arrayop.c