fix bug with serialization of ASTs containing eval calls