Assertion and check functions.
Copy constructor and assignment for Function.