reference counted bam1_t wrapper can be used directly as a bam1_t *
reference counted bam_hdr_t wrapper can be used directly as a bam_hdr_t *
reference counted bam_hdr_t wrapper can be used directly as a bam_hdr_t *
can we use @live for scope checking?
Template struct that performs reference counting on htslib pointers and destroys with specified function