The "stable" and "rollback" branches read the "version" key, but
dump-journal writes the version as "ver". So both target versions were
always 0: "stable" marked every write of the object stable, and
"rollback" removed nothing. The rollback loop also counted down with a
size_t and "i >= 0", so it never ended and read before the vector.
Read "ver", and count down with an int as elsewhere in the code.
The function is only used to convert older metadata with its journal in
write_json_heap(), and write_json_meta() only calls write_json_heap()
for "3.0" metadata, so that path isn't reachable yet. There is no test
harness for vitastor-disk internals, so this comes without a test.