java_gen: fix bug in IPv4Address.equals / hashCode

Reviewer: @sdmodi

IPv4Address's equals and hashCode were mistakenly considering
the ephemeral bytesCache array for equals() and hashCode().
Thanks, Sudeep for the catch.