add logic to re-fetch BAM reference sequence section if it is bigger than 64K, fixes #245