Add _d_arraybounds(string, uint) function

Not taking ModuleInfo is important to reduce dependency on runtime.
Merge pull request #608 from 9rnsr/fix10985

Add _d_arraybounds(string, uint) function