protect __tostring for remaining data types