Update unfold.m

reallocate bug when array is not a cell array