Fix ClassCastException with nullable chars

 #KT-4210 Fixed
 #KT-4098 Fixed
 #KT-4251 Fixed
Try to resolve expression as class object if resolution found an inappropriate result