[MATLAB] Fixed destructor
[MATLAB] Fixed passing self pointer in member functions