[Chapel Merge] Two fixes in OrderedMap

Branch: refs/heads/master
Revision: a7cdc7b
Author: e-kayrakli
Log Message:

Merge pull request #17463 from e-kayrakli/orderedMap-fixes-2

Two fixes in OrderedMap

This PR fixes two issues with the OrderedMap that was added yesterday:

  • Some iterators didn't have the necessary order-independence pragmas.
    This PR adds that.
  • This code bumped into a memory leak where the workaround was simple,
    so it is added here. The memory leak is recorded in

Trivial, not reviewed