Stack sensitive version of Item.getItemStackLimit. Closes #771