Adds the ids of the parts the expression references (following the references, also in type expressions and nested quotes: core.expression-part-references) to found. Follows them breadth first with a work list (core.quote-part-ids-from), so a long chain of references does not deepen the stack