xbps_match_virtual_pkg_in_dict: add support to match vpkgs with exact version.
Add some tests for pkgdb.