Further improvements in rb_mean_hmc