TrigValTools: improve dictionary handling in chainComp.py
Implement MR review suggestions from !38208 (merged) which were not done there because that one was urgent.
Implement MR review suggestions from !38208 (merged) which were not done there because that one was urgent.