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

Fixes #13359.