fixes cvCvtSeqToArray with slice length 0