Add preliminary wrappers for the AST generator
Fix the test for _val compat break
Minor example fixes