Introduced ref() method on ClassGenerationUtil for better class/type referencing.
Sonar suggestions.