Fix problem: dictionary changed size during iteration
Fix problem: dictionary changed size during iteration

The issue comes up when using sphinx to do an incremental
docs build.

chapel-lang/sphinxcontrib-chapeldomain