Added hashcode method to Field and Record.