Switch to using `git_reference_iterator`.
Make sure that we also free memory in case an exception happens in ruby land.
This is no longer used.
Better naming.
Eh, I guess this is correct now.
Merge pull request #212 from arthurschreiber/use_ref_iterator

Use ref iterator