import_block uses the array's first element's bit position instead of the one specified by start, which can lead to the wrong bit being set in the bitblock in a case where a single bit is to be set for the block and the bit is not the first element of the array to be imported.
import_block uses the array's first element's bit position instead of the one specified by start, which can lead to the wrong bit being set in the bitblock in a case where a single bit is to be set for the block and the bit is not the first element of the array to be imported.
Minimal example to reproduce the issue:
This example produces a bvector with the bits 0, 65536 and 65540 set, instead of the expected 0 and 65540.