new tokeniter.state_end(block) function, returning the state at the *end* of the block
new method documeninfo.info(document).looksComplete(), returns True if a document looks complete (i.e. the state depth at the very end is 1) and could probably be compiled