BUG: incorrect serialization of a CustomBusinessDay in HDF5 (GH8591)

closes #8591