Fixing https://github.com/jonfhancock/JsonToJava/issues/3
Cast primitives up for the hash code method, and use the == operator for the .equals method.