This change allows us to generate "unresolved" references and let Sphinx deal with dereferencing them in later stages. It is not useful by itself but it serves as preparation for the next commit. (cherry picked from commit b109c86805)
b109c86805