Make the IInventory array final, and add in equals and hashCode.

Maybe I can whipe out two PR's instead of one.