Turing: help speed up state space model

please check this simulation

https://github.com/TuringLang/Turing.jl/issues/1412