First, marriages that are contracted by domiciliaries of the forum state in another state for the express purpose of evading the law of the forum state are deemed invalid.
Gays can't get married in other jurisdictions just to get around the laws in their home state. And we have US Supreme Court case law to back up this.