Fix writing of PackratFormat field; TODO: ensure packrat updated