Fixed tree writing bug for test case (will fix code generator in next commit).
Fixed tree writing bug for test case (will fix code generator in next commit).

neomonkeus/niflib,figment/niflib,figment/niflib,figment/niflib,neomonkeus/niflib,BlazesRus/niflib,niftools/niflib,amorilia/niflib,BlazesRus/niflib,neomonkeus/niflib,amorilia/niflib,niftools/niflib,niftools/niflib