Update ChLinkSpring to use ChSharedPtr to handle ChFunctions.
Fix bugs in copying ChFunction member variables
Update ChLinkEngine to use ChSharedPtr to handle ChFunctions.