Added deduplication between Indexes and MultiIndexes when saving objects. The code assumes that values in a MultiIndexes are already deduplicated