SerializerBase: boolean[] is packed into bits instead of bytes. Credit: Chris Alexander