HIVE-7068 Transition the binary serialization type test to using LazyUtils

Rely on LazyUtils.writePrimitive instead of rolling our own serialization.
We know, under the hoods, they're just using writable, but we can make
a better test by relying on the hive apis instead of that writable assumption.