Fix example that is invalid in rdoc

example should call read_array_of_type and is calling write_array_of_type. I guess was copied over from the other method example but name of method was not changed by mistake.