[ts.util.jsonify] impelment json serialisation

Can serialise dicts, nested infinitely, including with numpy arrays.