Fixed CodeGeneratorVisitor for consts.