Added check of string length when writing a mat struct

* src/rmatio.c (write_strsxp): Added check that all strings have equal
  length when writing strings in a mat struct