Convert arbitrary Julia types to structs

mxarray(anything) converts anything to a MATLAB struct.
mxstructarray([anything]) converts to a multidimensional struct (as
opposed to a cell array of structs).

Also includes some additional cleanup in mxarray.jl, and avoids
shadowing ndims in Base.