Fix several bugs related to recovery of long records. Support migration from non-compressed journals.