Sorry to hear of your accident.
yah these big HEAVY bikes love to tip over real damned easy. I found that out too.
Unfortunately since it weighs close to 500 lbs, any time you flip it, whether you are moving or standing still you are going to damage something. You will take turn signals off, bust foot pedals off, brake pedals off, brake handles just from the weight of the bike when it smacks them on the ground.
Yanking the light off like that could have damaged the plug where it's wire plugs in at, if one of the pins is bent or something is shorting, it may take the whole thing out. Another thing I have seen often when wires get tugged like that, especially on the smaller gauge wire is, it looks like it's ok, because the insulation stretched a tad then flexed back in, but the wires inside are actually broken, and you can't see it. if you got piercing type leads, ie phone leads I think they used to call them, you might want to do some continuity checks on the wires that were involved in any twisting / stretching etc of the event. Worse case, you rule out a possibility or two of what the problem is.
id get all the new lights and stuff in place and wired up then see what all is or is not working.
Aaron