Add hashCode to externs.