libsyntax: update helper to stringify TyU* and TyI* to take into account having a value.

Fixes #13359.

Includes rebase to fix copyright year in test.