- fix BAM header serialisation from BamHeaderParserState
- add first step of BAM record rewriting