update output refs when question ID changes

This will match `<output ... /></output>` which is a far-out edge case, probably typo, but nevertheless could create invalid XML if there happened to be an output within another output (can't imagine why that would ever be). Suggested alternative:

`/(?:<output (?:value|ref)=")(.*?)(?:"\s*(?:\/|><\/output)>)/gim`