Fix class_exists/interface_exists bugg in CodeGenerator