Add Bloomfilter serialization test code.
A number of tweaks of the serialization code.