fixes #7569 - add lambda to scopes that are missing callable object (lambda or Proc)