Added protection agains inserting the same value several times into collections