Make sure that a use is only added once in ClassGenerator
This commit ensures that if someone adds a use twice it is only added once to the file.