Resolve callable reference expressions

 #KT-1183 In Progress
Disallow references to extensions in classes

It's not clear in which order should the two receiver arguments be passed to
them, and there's no corresponding K*FunctionN class for now

 #KT-1183 In Progress
LHS of callable reference can't be a type parameter
Refactor ClosureCodegen

Extract some methods, replace types with more generic (ExpressionCodegen ->
LocalLookup), make more stuff fields instead of parameters passed to every
method, annotate with Nullable/NotNull
Minor refactoring in CodegenBinding

- CLASS_FOR_FUNCTION slice was used for two purposes: to record closure classes
  for functions and for scripts. Separate this slice into two slices:
  CLASS_FOR_FUNCTION and CLASS_FOR_SCRIPT
- add classNameForAnonymousClass() overloaded method to CodegenBinding, taking
  a function descriptor (not a PSI element)
Extract static helpers to FunctionTypesUtil

Also move 'getInternalClassName' method from CodegenUtil to FunctionTypesUtil,
since it's related to function types
Minor refactoring in ExpressionCodegen

Inline useless method, factor out resolveToCallableMethod logic from
resolveToCallable
invokeinterface FunctionN.invoke()

Instead of invokevirtual on FunctionImpl class, do invokeinterface on a
Function trait. This will allow to invoke functions on classes which don't
inherit from FunctionImpl classes.

Also rename the method to the more sensible name
Refactor ClosureCodegen

- make several commonly used parameters ClosureCodegen's fields
- take an arbitrary strategy for closure function body codegen
- don't make extra binding context lookups
Codegen for callable reference expressions

 #KT-1183 In Progress
Increase ABI version

Due to changes related to FunctionN now being interfaces, FunctionImplN
classes, KFunctionN, callable references