Code cleanup

* src/rmatio.c: Grouped functions together in sections of functionality.

* src/rmatio.c (map_R_vecsxp_dims): Removed duplicate code from
  set_dims and renamed function to map_R_vecsxp_dims.