Compiler now mentions which file has a duplicated module. Fixes #2131
Fix two test cases
Fix compile error during boostraping
Merge pull request #2240 from gmcabrita/fix-duplicated-module

Improve compiler message when duplicated modules are detected