update dimLinks and dimTree (used in subsetByLeaf)
.subset_leaf(x, leaf, dim = "row", updateTree = TRUE)
Ruizhu Huang