Improve parent iterators on commits