Fix HEX-792 (Cluster-IO Assertion) by skipping io flavor 0.
Not sure why event.is_io() returned 0 in the first place, though.
Rename num_folds to n_folds to be consistent with GLM2.