use generic function type for the key of AST node of lambda receiver

because the function scope of lambda will be updated by instantiation if
the lambda is generic but the generic function type will not be
updated.