Minor fixes.
Fixed copy between trees with different allocators.