Fix: as_json on hash/array without references.