You can still test the switch before buying a new one if you have a volt/ohm-meter.
The wiring would have to be cobbled together or butchered for it to be the wiring I would think, since the switch is just standard blade connectors and the short harness to the heater is pretty straightforward.
But either way, it's easy to at least see what's going on with the wiring. Maybe the PO had a failed switch and needed heat so they ran a wire directly from the backside of the ignition switch to the heater motor.
Lots of odd things are discovered under the dashes of previously owned Broncos!
Good luck.
Paul