Moved generic to_string logic from Object and out to the respective objects.