Better CompilerDelegate to allow keeping the structure of
prepareForTypechecking() in order to fix the IDE issue
https://github.com/ceylon/ceylon-ide-eclipse/issues/1154