Graphnodes with functioncalls should only be memoized at the global scope

These graphnodes are referred to when determining what graphnodes to
execute if a function definition was modified