Moved the code in ddg.return that creates the function nodes if they
don't exist to before it creates the return node so they can link
together properly.