Fixed bug in AdaptiveMetro class, since it fails for Metropolis-within-Gibbs samplers