Fix some inventories not using maxStack. Fixes BUKKIT-2883
Manual merge of commit c549609