warning fix: make explicit to_string overloads for different integer sizes

This fixes a -Wsign-promo warning when using to_string on a Uint8
(which would automatically be converted to an int/int32_t)