Dump AST objects on compile or test failure