Handle when a location changes file_id. We were looking up the path in the active tree, we need to look it up in the basis_tree. Add a direct test for the 'switch' case, which is when setting a parent_tree to something new, and the basis_tree is no longer in the available repository. Add a couple more direct successful delta checks. (most of the test_inv tests were just about failing with bad deltas.)