Fix two bloom filter bugs, when bloom filters are huge.

Huge means a bloom filter contains more than UINT32_MAX bits.