Changed data type when writing character data

* src/rmatio.c: Changed data type when writing character data from
  MAT_T_UINT8 to MAT_T_UINT16. This fixes the segfault when writing
  compressed files with character data.

* inst/tests/test_rmatio.r: Updated test cases to test
  compression. Three test cases still fails.