AVRO-1231. Java: Fix Trevni shredder to work on non-recursive schemas with multiple references.  Contributed by Mark Wagner.

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