Added ability to process __tostring results that may be non-string values.