make 'put' work like 'array[index] = value' instead of falling back to splice

allows putting values beyond current length