BUG: GH3455 Duplicate indexes with getitem will return items in the correct order

BUG: GH3457 to_csv writing duplicate columns incorrectly

closes #3455, #3457