While working on Architect - Screen / screen section references not found for UI action - #4 by jsusen I decided to refactor the ReferenceIndexManager.
I think the code is a bit more readable now. The references are available a little faster too. The core works according to my checks. @washi could you check that it actually works? Thanks.
Note:
The pull request also contains the fix to Architect - Screen / screen section references not found for UI action - #4 by jsusen