Refactored SameObjectSet and implemented SameObjectMap.Entry.setValue