Added more coverage when writing to arrays.