[Fix #1441] Compare AST for whole buffer in AutocorrectUnlessChangingAST

I didn't expect this to still be a problem... Oh, well.

We were already re-parsing the whole buffer to check for syntax errors. If we check for AST equality instead, we don't need to check the syntax.