support Array.Resize for one dimensional arrays