Don't instrument builtins.
Use treeCopy() instead of deprecated fullCopy().
Add runtime check for function handles.

The else clause can have a less instrumented version for performance.