Inventory: raise error when adding a group that already exists.

The parsers check if a group already exists.