"...and intend to reside in this commonwealth thereafter..."
There's the loophole that requires only a little lie.
That depends. How should a County clerk determine such intent? My criteria would be to have the happy couple show me evidence of at least one of them having an establised residence in Massachusetts already. If they decide to move out afterwards, there's nothing the Clerk can do about that. I'm surprised that some such couple hasn't moved out of Massachusetts already and demanded that their legal status be recognized in some other state.