Serializing of bitsets.