Bugfix: follow self-commands in decider

When directing the search towards the optimal selection, we ignored
self-bindings and therefore didn't bother to optimise the selection
of dependencies of commands used in this way.