Fixed bug on writing empty datasets so that Matlab can read them.
Fixed bugs in writing boolean types in a Matlab compatible way.
Changed reading to have the Matlab compatiblity option set to False by default.