Added serialization helpers for ItemStack and NBTTagCompound