xbps-query: print filename-{sha256,size} objs from index in repo mode.
Repair xbps_find_pkg_orphans() after pkgdb 0.21 format switch.

The problem was that pkgdb is now a dictionary, thus this contains
an unordered set of objects, therefore we cannot depend in the order
anymore.