Graphnodes with functioncalls should only be momized at the global scope

These graphnodes are referred to when determining what graphnodes to
execute if a function definition was modified
Merge pull request #1428 from junmendoza/ChocoButterJun

Graphnodes with functioncalls should only be memoized at the global scope