Make Term#hashcode in Java backend transient

The field Term#hashCode should be invalidated after deserialization. @dwightguth please review