Make sure the data structures are cloned, rather used directly. Also support testing against a data structure.
Better handle orphaned AST fragments.