Fix handling of ReifiedEdgeTerms