Changed .to_string(pretty=True) behavior.

Before it depended on len(obj), now it depends on len(repr(obj)).