In what appears to be a small but growing trend, a gay couple here in NYC were accidentally married, according to an article in today's New York POST. The girl picture here on the right is actually a boy, with a boy's name (Jason!), but in a classic bureaucratic screw-up, no one quite noticed the bride was a dude. Which is maybe understandable looking at the picture. Less so when you think that the city might have some records on exactly what sex you are.
A similar "whoops" happened in Tennessee when two guys, one in jail who was claiming to be a woman, got married last year. It took the state a year to figure that one out.
So, given the questionable status of legal gay marriage, in California and New York State and across the country as the Obama Administration shockingly defends DOMA, your best bet might be to find a nice set of pumps and a colorful summer skirt and see how far you can get through the system.