Fixed writing of empty matlab structs to use a Dataset with the appropriate fields attributes set and several reading errors with the new format.