Fixed all bugs and adopted codegen to Projector.
Removed codegen flag in ExprTestBase.