AVRO-1498. Java: Fix custom encodings to work in reflect without Unsafe access.  Contributed by Christopher Mann.

git-svn-id: https://svn.apache.org/repos/asf/avro/trunk@1607711 13f79535-47bb-0310-9956-ffa450edef68