reftables: fixes and optimizations (pt.2)
This merge request contains another set of fixes and optimizations for the reftable library. Most importantly, it fixes a source of corruption when writing multiple indices.
Closes #229 (closed).
Edited by Patrick Steinhardt