Add unit tests for NbtReader and fix minor, associated bugs.