Add support for array of tables

Fixes #9