fix attribute copying in function recreation code in ExpandI64 pass