Better error diagnostics.

- Add sanity check for multiple artifacts with the same file path.
- Print more information in case of multiple inputs to a non-multiplex rule.

Change-Id: Ic76248fe61ba02bf3ff0820b9c968efc4b04ff20
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>