juju/names refactor part 3

Updates for changes to juju/names package

dependencies.tsv change is not included, need the juju/names PR to land to get the correct commit hash
id is only used in one place so perhaps just call t.Id() in that one place