Deal with lists in nested tables nested in lists nested in tables.

* Dont pop list frames without matching table nesting.

* Fixes RTing of wikitext snippet extracted from en:Nehrun Kot
----
* {{Toledo|USA}}

* foo
----

* No change in parser tests (Good luck creating one).

* Fixes RTing of en:Nehrun Kot

Change-Id: I756cb7045f08a2a7d494b96d899d92c097a7dc93
Merge "Deal with lists in nested tables nested in lists nested in tables."