Converts data to/from stringified form, appropriate for
saving-to/reading-from permanent storage.
Deals with objects, circular lists, repeated appearence of
the same reference.