Notwithstanding the two preceding sections, a soldier being in actual military service, or a mariner or seaman being at sea, may dispose of his personal estate as he might heretofore have done; and the will of a person domiciled out of this state at the time of his death shall be valid as to his personal property in this state, if it be executed according to the law of the state or country in which he was so domiciled.