Added overflow treatment and loading of 1-len arrays