Fix bug in maxdict when replacing an existing item
Authored by: efiring 2009-09-19
Parent: [r7787]
Child: [r7789]