In test_replace_subtrees_nested, "inner_replaced" was unused after the change to not support nested ReplaceLocationRequests; remove it
Code in _cav_call for substituting Call names should have been removed when we decided VariableSubstitutions applied only to, erm, Var(iable)s; even given a Call with a string name, it won't work properly as Call names are not free.