Fixed bug in ensureStripes with ROIs of width 1 (allocated array too small)