Fix some issues discovered from mostly manual inspection of outputs from
the llvm-xray fdr-dump tool.
It turns out we haven't been writing the deltas properly, and have been
writing down zeros for deltas of some records. This change fixes this
oversight born by the recent refactoring.