perf: ensure `Expr.replaceExpr` preserve DAG structure in Exprs
2 files changed