unpack-trees: don't perform any index operation if we're not merging