It was designed to prevent same-sex couples who could marry validly in other countries or who in the future could marry validly in other states from coming to California and claiming, in reliance on Family Code section 308, that their marriages must be recognized as valid marriages.