...and fix some edge cases it catches. Also, implement a method to check ancestor scomes in WmlIterator (not yet used).