match-trees: use hashcpy to splice trees