Run against JSON.stringify to compare. Subject is 100x slower.
Benchmark original stringify (Base) VS mystringify (Test) VS
JSON.stringify (JSON).
Avoid indent-string computation. Use for-loop
instead of forEach. 10x speedup on *flat array of int* benchmark.