[Chapel Merge] Fix valuesToArray and keysToArray

Branch: refs/heads/main
Revision: d47e09456c13f435b2df20dd84055f007680e124
Author: jabraham17
Link: Fix valuesToArray and keysToArray by jabraham17 · Pull Request #28743 · chapel-lang/chapel · GitHub
Log Message:
Fix valuesToArray and keysToArray (#28743)

Extends a fix from map.toArray to the values* and keys* variants

resolves `.toArray()` does not work on maps where the value is a tuple containing a set · Issue #23705 · chapel-lang/chapel · GitHub

  • paratest

[Reviewed by @arifthpe]

Compare: Comparing db373276ae1e4e84e1835ad105bb56ac03866b2b...601e8308f09c4bf4be7bb463a41eef472ac1344d · chapel-lang/chapel · GitHub

Diff:
M modules/standard/Map.chpl
A test/library/standard/Map/toArray/issue-23705.chpl
A test/library/standard/Map/toArray/issue-23705.good
M test/library/standard/Map/toArray/non-default-init.chpl
M test/library/standard/Map/toArray/non-default-init.good
https://github.com/chapel-lang/chapel/pull/28743.diff