fixes bugs in table plugin.

Tested against this code:

```js
row = {
  topic: 'funky',
  note: 'yes',
  wicked: 'true'
}
doc.table([row, row, row])
```