Compiler: Improve detection of which types need to be generated or not (depending on referenced assemblies).
Tests: Remove directory before running linker (so that old files don't bother when enumerating assemblies).