Add dInventory unit test.

This also contains a new Yaml-based output system.

This requires my latest pull request.