lib/std/union_find: make DisjointSet Cloneable