Fix swig shared_ptr for TpetraMatrix