Fix bitstring, message marshaling.