Fixes several CouchbaseTableSource issues.