Adapt testBit primitives to new prelude.

Patch by Peter Lebbing