Ok, finally put it all back together.
Sidestand bypass rewired.
One of the HT wires was a bit loose, so repaired it, but it wasn't the cause.
Cleaned out the ignition switch.
Finally tried to start the bike and the battery was flat, so while jump starting I noticed that the relays would...