LPS-43815 Service builder should be able to track forward-defined references and resolve them at the right time