fixed poisson distr so it works with higher order autodiff