better handling of puts with arrays of 1 and 0 arrays