TST: Parametrize tests in tests/util/test_hashing.py
Noticed that these tests could be parametrized when investigating a comment in the `IntervalArray` PR, and originally started doing to work there.  The `IntervalArray` PR is big enough already, and this is unrelated, so creating a separate PR.