Allow iterating over a write batch