Where the will directs that an annuity shall be provided for any person out of the proceeds of property, or out of property generally, or where money is bequeathed to be invested in the purchase of any annuity for any person, on the testators death, the legacy vests in interest in the legatee, and he is entitled at his option to have an annuity ...