Prioritise compilation of namespaces backed by files
Merge pull request #1626 from tihancock/unique-file-per-namespace

Ensure that there are not multiple source files for a namespace
Merge remote-tracking branch 'upstream/master'