new: SortedSetBuilder, EnumSetBuilder, some refactoring