Bug fix for SortedMap. When setting a value for a key that already existed, the value was not updated.