Fix some more missing copy warnings in the generated code