Inventory and codewords now both generic collections.
Some new code to handle tags with arguments.