Revert "in residual goals, match order of term variables more closely"
Revert "in residual goals, match order of term variables more closely"

This reverts commit f2029b4caf3599b34862580cae3f2deb3056e1c9.

Walking attributes in this way may lose some of them.

jn7163/swipl-devel,mndrix/swipl-devel,mndrix/swipl-devel,mndrix/swipl-devel,koryonik/swipl-devel,koryonik/swipl-devel,jn7163/swipl-devel,jn7163/swipl-devel,edechter/swipl-devel,edechter/swipl-devel,koryonik/swipl-devel,edechter/swipl-devel,jn7163/swipl-devel,jn7163/swipl-devel,koryonik/swipl-devel,edechter/swipl-devel,koryonik/swipl-devel,mndrix/swipl-devel,mndrix/swipl-devel,edechter/swipl-devel