fix list refs

I need something like this in order to perform `listRefs` and generate matches.
Should this actually be moved to `db.keys` in `git-fs-db` or something?