fixed bug in marshaling of expression graphs