Improve ZeroVec PartialEq and Hash implementation (#8287)