Oh, it needs to be Jim to get your attention (cf. Adjoint sensitivity method for stochastic differential equations)
I met David Duvenaud before Xmas and he said he would be happy to help to get this in Stan.
although it seems Mike already knows what to do.