[MATLAB] another fix related to passing mxArray
Merge branch 'matlab' into KTFIX