Fixed the duplicate method on FunctionNodes so we don't get
self-referencing trees that cause infinite loops.

Was missing a *