Use single root for nif in WriteNifTree and ResolveMissingLinkStack, to make interface consistent with the rest of niflib.