KT-4976 Completion ignores smart casts

 #KT-4976 Fixed