Write serialized ASTs to the copy directory.  Fixes #31