Improve conversion to AST

Handle metas as "<n>" strings