As luck would have it, I’m two weeks into Wills & Trusts class right now…
Provisions like those you list are occasionally enforceable, depending on your jurisdiction. Many jurisdictions frown upon “ruling by the dead hand” (jerkin’ your relatives around from beyond the grave), but restrictions that aren’t unreasonable and don’t impose an undue burden on the living are usually followed.
One interesting case: Shapira v. Union National Bank, 315 N.E.2d 825. The will mandated that the deceased’s son marry a Jewish girl in order to receive his portion of the estate. If he did not marry a Jewish girl within seven years, his portion would go to the State of Israel. The court found that this was not an undue restriction on marriage. Total restrictions on marriage, said the court, are contrary to public policy and void, but a partial restraint is (generally) just fine. Important quote: “…it is the duty of this court to honor the testator’s intention within the limitations of the law and of public policy.”
Example of an invalid condition: Maddox v. Maddox, a Virginia case. The will mandated that the beneficiary remain a member of the Society of Friends to receive her inheritance. When she reached marrying age, there were only 5 or 6 men in the Society, so she married outside the Society, losing her membership. The court held that such a restraint on marriage was unreasonable.
Odds are, the “you can’t marry anyone named Raymond” provision would be OK, since that still leaves a mighty large pool of marriageable men for the widow to choose from. Again I quote Shapira: “A partial restraint of marriage which imposes only reasonable restrictions is valid, and not contrary to public policy.” Shapira cites a case I have not read, In re Clayton’s Estate, in which a Pennsylvania court upheld a testamentary gift granted on condition that the man not marry a Catholic. Common sense tells me that that would reduce the potential marriage pool far more than a restriction by the marriage partner’s name, so, odds are, the less-restrictive condition would be just fine.
In general, remember that the property left by the deceased was HIS, and, for the most part, he can do with it whatever he wishes.