Replace JSON.decycle with simplified version as part of JSON stringify replacer function.

JSON.decycle is *way* too slow for this.