rapidjson: allow not object and not array values to be written as root.