[MATLAB] More fixes to std::pair