Fixes https://github.com/pulumi/pulumi/issues/13671. The code to marshal a TokenType back to a `$ref` simple copied the token across, but that didn't correctly reconstruct the URL that `$ref`s expect.