The "object" parameter of the SetTag function has a cut-and-paste error.
Its description is:
The object whose tag is to be retrieved.
Where it should be:
The object whose tag is to be set.
Its description is:
The object whose tag is to be retrieved.
Where it should be:
The object whose tag is to be set.