ptsampler: added flatchain, flatlnprobability and the optional args[] keyword to the sampler