repository: return a list from listall

Make listall_references() and listall_branches() return a list instead
of a tuple, as they're simply sequences of objects.