BUG: use an OrderedDict instead of a set

This will preserve the order of the tables found by the parser, which is the
order that they occur in the HTML tree.