Unparse thunks properly when unparsing if-0

This fixes a bug that was causing incorrect variable naming within the
alternatives of an unparsed if-0.