Ironed out various bugs to do with adding columns of type object.