Fix bugs in Dictionaries.

Unit tests added to find and fix bugs in my plusIfAbsent, replace, and
minusIfEqual.