Do not do a list_nodes_min for --query commands

This has been pretty obnoxious. Basically, `list_nodes_min()` is designed to optimize name lookups for everything except for `--query`, `--full-query` and `--select-query`, but it was doing it for them too. This should take care of that.