Optimize integer to string conversions (#36470)
* Optimize integer-->string conversions
This avoids invalidations caused by invalidating `StringVector(::Integer)`.
This also makes `bin()`, `dec`() and `hex()` slightly faster,
but does not change the Printf.