- UserEntity: use ByteArrayRef.
- SerializableType, Historic*QueryImpl: use getBytes() instead of getByteArrayValue().
- VariablesTest: calling setBytes multiple times does not work atm.