Add support for disabling spellcheck via setAutocorrectionType.