Adds constructor for arrays.