ivory-bitdata: add bitToBool and boolToBit convenience functions