TreeWithSearch.generateFlatTreeFromLabels() now sets
selectedItemsCompareFunction