bloom filter cleanups, encodability, and unit tests