more improvements on array of tables parsing
unit tests