revparse: Make revparse_ext() return git_reference from names as well