html_writer::table accepts html_table object, not stdClass.
Merge pull request #9 from tmuras/master

html_writer::table accepts html_table object, not stdClass.