AVRO-1457. Java: Fix Encoder so that offset in non-array-backed ByteBuffers is not altered when written. Contributed by Rob Turner.

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