Place parser state above the linked transition table so scans emit ops correctly, and preserve or clear the WASM scan cache across nested and reused parse buffers. Co-authored-by: Cursor <cursoragent@cursor.com>