Merge pull request #1431 from junmendoza/ChocoButterJun

Fix the function that marks graphnodes dirty when a function is redefine...
Handle multiple calls of a redefined function