Multithreading and Monte Carlo in 1.7

I narrowed down the issue to the fact that the structure

cfg = ForwardDiff.GradientConfig(...)

is not thread safe, and there are obvious ways to get around that in my code.