[minor api] Allow `Client.prototype.write` to accept an Array in addtion to an Object.