Fix datatype for some things in table_factory
Merge pull request #1 from adamrp/issue-290

Fix datatype for some things in table_factory