Disambiguate class names in generated code