Let the Environment override the CodeGenerator

see #404
4 files changed