reference: get references out of the iterator

Allow getting references out of the iterator instead of just names.
Merge pull request #36 from libgit2/ref-iter

reference: get references out of the iterator