Fix @Morphan1's breaking of inventory.contains

Also make list.matches always return true to avoid similar mistakes in
the future.