Added support for getting shorts and ints from NBT