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

Fixes #13359.