[MATLAB] fix problem in typecheck for passing mxArray (was still using Octave classes)