Thanks a log Julian Hyde!
I'm seeing similar issues with setBytes() and the ByteString object. It looks like it's being deserialized as a LinkedHashMap who's key is "bytes" and value is a string. I'm not sure what the relationship is between the value and it's original.
Trying adding a similar test but hsqldb isn't cooperating.