dictionary: support comparing dictionaries