Final decxx corrections to PR #3723

Corrections to PR #3723, the removal of PyCXX from the _tri module.  I've made the four requested changes.  Using the new C++ array_view classes has improved the code, but the changes pervade all three of the C++ files making it hard to review.  However, all tri tests pass, the examples produce the same output, and there are no memory leaks in either.