Add support for multiple columns having same name

Inspired by LibreOffice: first column has original name, all other
columns with same name has 1-based index appended.