Added check that resolved calls are completed in diagnostics
to tests
KT-4866 Resolve does not work inside brackets with unresolved reference before
 #KT-4866 Fixed
Refactored ResolutionResultsCacheImpl
Used map instead of trace to store data
Rewrote it to Kotlin
Complete type inference for all candidates only for completion