A loop detection breaks out of as-set and route-set resolution chain caused by cross-reference
Added a spec to test f54055ff6264eb18a3b9cf0975c6f87149b6405f