FIX: KWIC user interface.

Related to refactoring f4af049fb4d82e82d389c0f86bd33ba670598640.
FIX: Compatibility with older patterns saved in corpora.