MarkDB BytesCodable fixes.

The MarkDB class needed to implement BytesCodable for the
non-private fields. These fields get encoded in Codec by default.
Also a bugfix to encoding of SimpleMark where the boolean 'end'
field was flipped when it was encoded.