Fix pickling of FunctionGraph
Merge pull request #1 from nouiz/yaoli-optimization_cache

Fix pickling of FunctionGraph.