docs: function ensureStringed(thing) {
    if (getStringable(thing)) return getString(thing);
    else if (thing instanceof Array) {
      const res = [];
      for (let i = 0; i < thing.length; i += 1) res[i] = ensureStringed(thing[i]);
      return res;
    } else if (thing === Object(thing)) {
      const res = {};
      for (const key in thing) res[key] = ensureStringed(thing[key]);
      return res;
    } else if (thing === null) {
      return null;
    }
    throw new Error(`unsure of how to jsonify object of type ${typeof thing}`);
  }