Improved InvUtils.itemsEquals