Fix mxarray(Bool, dims)

I'm not sure why these tests didn't fail before.
Convert ranges to vectors when passing to MATLAB

It's possible we should do this for any AbstractArray