Scaling for MCMC on heterogeneous targets and nonstationary phases