These changes begin to address the unsafe operations used in this package.
Currently these just deal with the most obvious issues.
Repeatedly running tests on nightly reveal that there are still segfaults. I believe we are leaking pointers to C somewhere. This will also have to be addressed.
Note that tests are failing due to an unrelated issue with complex arrays that also impacts nightly.
Edit: there are some unrelated changes in the first three commits I will excise from this PR.
These changes begin to address the unsafe operations used in this package. Currently these just deal with the most obvious issues. Repeatedly running tests on nightly reveal that there are still segfaults. I believe we are leaking pointers to C somewhere. This will also have to be addressed.
Note that tests are failing due to an unrelated issue with complex arrays that also impacts nightly.
Edit: there are some unrelated changes in the first three commits I will excise from this PR.