Optimize cmp_type handling in query
Optimize cmp_type handling in query

Closes: #419
Approved by: jrohel

rpm-software-management/libdnf,edynox/libdnf,hughsie/libhif,hughsie/libhif,rpm-software-management/libhif,edynox/libdnf,hughsie/libhif,rpm-software-management/libhif,edynox/libdnf,edynox/libdnf,Conan-Kudo/libhif,hughsie/libhif,rpm-software-management/libdnf,Conan-Kudo/libhif,rpm-software-management/libhif,rpm-software-management/libdnf,Conan-Kudo/libhif,rpm-software-management/libdnf,rpm-software-management/libhif,Conan-Kudo/libhif