Fix object and struct array hash computing