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

Fixes #13359.
auto merge of #13452 : Ryman/rust/fix_uint_as_u, r=alexcrichton

Fixes #13359.