Fix a number of alignment and offset bugs that were corrupting the
journaling output stream. In particular, the stream record expansion
code (journal_extend()) was not returning the correct payload pointer.