in dict displays, evaluate the key before the value (closes #11205)

Patch partially by Steve Dougherty.
6 files changed