fix test output
codegen override must be lazy
withScope needs to use default method handler (fix effect order violation)
move checkCast flag to optiml runner
minor