NXP-14423: make BinaryScrambler implementations Serializable