Fix typed-index-collections versions to ~3.1.0
Using the tilde here tells cargo not to bump to 3.2.x, which would require Rust 1.81.0.
I wish we could say "don't use 3.2.x unless you're on Rust 1.81", but I don't see an easy way. Leaving this as-is breaks our CI.