Fix a bug where we could corrupt a parent loop's header info if we unrolled