lagarith: Convert to the new bitstream reader