text: Title: Give local keywords in resource files precedence over keywords in test case files
  Body: Currently if you have a test case file like
  
  ```robotframework
  *** Settings ***
  Resource        example.resource
  
  *** Test Cases ***
  Example
      Keyword 1
  
  *** Keywords ***
  Keyword 2
      Log    Keyword in test case file
  ```
  
  and the imported resource file contains
  
  ```robotframework
  *** Keywords ***
  Keyword 1
      Keyword 2
   
  Keyword 2
      Log    Keyword in resource file
  ```
  
  the `Keyword 2` keyword that ends up being called by `Keyword 1` is from the test case file. This is rather strange and it would be more logical if the keyword from the same resource file as `Keyword 1` would be used.
  
  This behavior was deprecated in RF 6.0 when local keywords were given precedence over imported keywords with same name (#4366).