Currently when we dump sections, we dump them in the order,
which is specified in the sections header table.
With that the order in the output might not match the order in the file.
This patch starts sorting them by by file offsets when dumping.
When the order in the section header table doesn't match the order
in the file, we should emit the "SectionHeaderTable" key. This patch does it.
I'm not sure you really need this test. offset.yaml provides the same level of coverage and actually provides better coverage (it also shows that the section header table isn't printed when the sections are already in order).