I've had bikes attack before. One smacked the back of my heel with a pedal in mid stroke by throwing my foot out of the pedal as I was hammering. Another one leapt up and chewed the back of my leg with it's big chainring, which didn't have a chain on it at the time.
And then there's the time the trainer stepped out and burned my leg. Little buggers are hard to control.
Glad you're alright, in all seriousness. Stuff like that can ditch you in the middle of traffic.