An interview io9 had with Marlon Wayans revealed that G.I. Joe: The Rise of Cobra wasn't the first comic book movie Wayans has been involved in, just the first one he was able to complete. Back in 1992, Wayans was cast as Robin for the sequel to Batman, only he was never used:
I was actually supposed to play Robin, in Batman Returns, about 15 years ago. But there was too many characters. I was cast, I was paid and everything. I still get residual checks. Tim Burton didn't wind up doing three, Joel Schumacher did it and he had a different vision for who Robin was. So he hired Chris O' Donnell.
Not that Wayans is at all bitter about it:
No, look — I get why they picked Chris O' Donnell, because it would be messed up to have Batman and you've got Robin, and his bulge is somewhat bigger than Batman's. Batman would have a serious problem with that.
Take that, O'Donnell! Little Man just owned you! In all seriousness, avoiding playing Robin, and eventually taking part in the embarrassing Batman And Robin, is a positive move, even for the guy from White Chicks.