Regeneration of current set/map with toArray/keySet/values methods.