Fix not generating assignments for primitive types in the copy constructor