Support auto-correction in WordArray.

Part of solution for #743.
Merge pull request #766 from jonas054/autocorrect_word_array

Support auto-correction in WordArray