IMG-2: Convert the TGTID representation from a simple String to a bespoke class.

Update users and tests to match.