We should add `cargo miri test` to the CI. When I run it locally, miri complains about memory safety issues.