Redid AST structures, introducing itm_container for generalised symbol storage