Fixed origin tracking issue that prevented the analysed AST from being stored.