Components: fix TreeBuilders.replaceOccurrences (swapped unrelated symbols!)