Type instability in ForwardDiff.gradient

No, unfortunately I tried that already and it doesn’t change anything…