Implemented assignment operator, copy constructor for TagList/Compound.
Fixed NBT writing bug and added nested compound tag to the testcase.