Changed set::add to replace existing element of the same name instead of raising an exception.