fix unnamed injects in named injects

When we looped over the named injects, and created the necessary unnamed
injects it needed, we didn't further process those unnamed injects.
Switching to do unnamed first ensures we handle this correctly.