Prevent near-infinite loop with stringifying JSON objects.

If you are stringifying a JSON array or object, and you happen
to pass in indent=1, we would get uint overflow and try to write
' ' chars for UINT_MAX-1 times. Instead don't reduce the indent
if it's less than 2.