Add hashCode for SnapshotWritable