Naively run `gradient` on this [infinite mixture model](https://github.com/yebai/Turing.jl/blob/project-bnp/test/rpm.jl/imm.jl) fails cf https://github.com/JuliaDiff/ForwardDiff.jl/issues/280#issuecomment-343963565. * Make `gradient` works on such a model. * Check that the obtain gradient matches the gradient of the analytical joint of a mixture model with a NRM or PK prior.