* Writes a nif tree to an ostream starting at the given root object.
* \param[in] in The output stream to write the NIF data to.
* \param[in] out The output stream to write the NIF data to.
* \param[in] root The root object to start from when writing out the NIF data. All decedents of this object will be written to the stream in tree-descending order.
* \param[in] info A NifInfo structure that contains information such as the version of the NIF file to create.