Add the `formatter_len_hint` method to Show and use it in `to_string`

Implements `formatter_len_hint` for several simple types.

Length of the formatted string is approximated for floats and integers.