[Chapel Merge] Do not use a slice to avoid confusing debugger

Branch: refs/heads/main
Revision: fd3667f854dff5c066908bb6284f3167ff7d3418
Author: benharsh
Link: Do not use a slice to avoid confusing debugger by benharsh · Pull Request #28963 · chapel-lang/chapel · GitHub
Log Message:
Do not use a slice to avoid confusing debugger (#28963)

For some unknown reason, slicing the Locales array here confuses the
debugger enough such that we are unable to correctly interact with
arrays. My best guess is that this is because the slice and non-slice
types have the same string representation, and some mapping function
needs to be updated.

[reviewed-by @dlongnecke-cray]

Compare: Comparing abb5257919418d4554556bba42986f5cbb60ebd5...5c17a88dfe2893c1ad4cdcc8daab668aec00a37b · chapel-lang/chapel · GitHub

Diff:
M modules/internal/ChapelDynamicLoading.chpl
M test/modules/sungeun/init/printModuleInitOrder.good
M test/optimizations/deadCodeElimination/elliot/countDeadModules.good
https://github.com/chapel-lang/chapel/pull/28963.diff