byte array serialization

I have found an issue with byte arrays. Deserialization works, but serialization unfortunately not.

Have added a test and a bugfix for the issues.

The Base64 was replaced by Base64Utils class from GWT to avoid using String as a byte array.