Raise exception on non-unique column index in to_hdf for fixed format.

Fixes #7761.