Fixed some memory allocation issues in the Gnumeric import code