xbps-query: use get_maxcols() from xbps-install.
xbps-query: search: simplify and use xbps_match_virtual_pkg_in_dict().