[MATLAB] solved problem of deleting objects twice

for class hierarchies, matlab calls delete() for every class, which creates problems for C++.
This patch prevents multiple deletes by settings swigOwn=false.