[reg] fix Issue 13084 - ModuleInfo.opApply delegate expects immutable parameter

https://issues.dlang.org/show_bug.cgi?id=13084

Also requires https://github.com/D-Programming-Language/dmd/pull/3754
It could, but there might be someone trying to craft their own ModuleInfo.