Fix issue #1503 with modules and imports sharing a name
Add module emit test
Merge pull request #1515 from Microsoft/moduleSharesNameWithImportInside

Fix issue #1503 with modules and imports sharing a name