Fix IOMoves, including gibbs_sample_categorical.