Added unit test for NbtReader.ReadAsTag(), and fixed a few bugs in it.