Added support for multi-dimensional columns in write()