Add `InventoryDictionary` to allow creation of an Inventory object starting from a dictionary.