When the surviving spouse is named as a devisee or legatee in a will, it shall be presumed that such devise or legacy is in lieu of dower, but this presumption may be overcome by clear and explicit evidence of a contrary intention on the part of the testator.