Corrected bug in caching processing when getting a class from the cache.

The class matching must be done using string-match and not string=, as
the class found is a fqn, while the token is only a class name (string=
fails).
Corrected typo in function name.
Added the function to add the import corresponding to the word at point (showing a menu of matching classes and add the selected import if not already present).