Fix ArrayWritable bug.