Only call rarch_main_deinit if main has been initied.
Fix unpack row len with 16-bit cores on desktop.

Missed call to UNPACK_ROW_LENGTH :(