Add TypeDesc tostring utility function.