FIXED: Various fixes to exporting model graph and behavior graph.