Preventing TextChunk.toString from crashing when using circular references

...by not using ``JSON.stringify(obj)`` but ``String(obj)``.