Missing loading attribute in Function.__copy__

and remove useless deepcopy of string attributes.

review11391002