Add _d_arraybounds(string, uint) function

Not taking ModuleInfo is important to reduce dependency on runtime.