enhance instrumentCode to also return serialized AST if requested
add option to instrumentDir.js to dump serialized ASTs