Fix some stackoverflow error in the NBT class, move some stuff around with containers