Make 'unpack_trees()' have a separate source and destination index