support bitpacked to support bitwidth >= 8, and edge case bitpack run with less than 8 values