Fix and test allocations in Rosenbrock
Closes #2925 by wrapping the constant passed to ntuple in a Val
Checklist
- [x] Appropriate tests were added
- [x] Any code changes were done in a way that does not break public API
- [ ] All documentation related to code changes were updated
- [ ] The new code follows the contributor guidelines, in particular the SciML Style Guide and COLPRAC.
- [ ] Any new documentation only uses public API
Additional context
Add any other context about the problem here.
The Rosenbrock tests are failing on master, see https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/20029704426/job/57435465939, so it isn't easy to assess the impact of this PR. I ran the allocation tests for Rosenbrock locally and they pass with the fix here and they don't pass withouth the fix.
Yes, I'll need to fix up tests in this repo before merging. Some of this is JET changes with v1.12 that I'll have to dig into and that's my plan for the week. So hold up a little bit.
Thanks, this won't release until I figure out the JET tests but at least the Rosenbrock tests are passing with this.