instead of directly using the raw data type, you could use `uint64_T`/`int32_T`/etc.. (those are `typedef`'ed in the `mex.h` header file to the correct size). That way you avoid platform-dependent sizes.

I would also add a `bool` specialization mapped to `mxLOGICAL_CLASS` type (plus the other missing ones).