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

Fixes #7761.
Merge pull request #7788 from filmor/patch-2

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