Added handling of passing a non-multidimensional array to export