[MATLAB] small fixes for containers

errors where due to replacement of octave type with mxArray* (const
was in the wrong place)