More informative error message. Also CV now use integer indices by default now.