loading: PkgId should be based on the root module ancestor's name
Also a bug fix: non-UUID projects could accidentally get last UUID.
Fixing this fixes one `compile` test but breaks another – the `Test`
module needs to be identified by itself, not just its name.
Fix Pkg/pkg test error: accessing `LibGit2` requires a UUID.