Fixed a bug with memory leak after turning off spellchecker

+ There were a couple of closures which stored references to
dictionary, so GC didn’t remove dictionary object