Made libgit2's iterators GC-safe