Fix problem with hstack and duplicate input tables
Merge pull request #2995 from taldcroft/table-hstack-2995

hstack fails with duplicate column names