[BUGFIX] Allow AST to be passed to preprocess

This should resolve #193.