Restore toString functions ToString and String.FromObject

Restore two deleted functions ``ToString()`` and ``String.FromObject`` so that user is still able to open obsolete files. Mark them as obsolete. 

@sharadkjaiswal  please review the change. I'll run unit test to catch all regressions.