Implemented hashCode and equals in ItemStack, Closes #986