Removed bad, bad var dumping in renameColumn and added a helpful error message if trying to rename a column which is used as a key