HPCC-12603 Minor optimizations and introduce bits_t to IBitSet

Also use __builtin_ffs to remove a loop

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Assuming 8 bits in a byte? Tut tut.