Fix incorrect assumption in test: binary data is stored as byte[] and not Byte[]

This wasn't picked up on master because javac didn't generate a runtime check
based on the generic type signature. But when groovy support is enabled it adds
a runtime type check which picks up this incorrect assumption.