Where a portion of a fund is specifically bequeathed and a legacy is directed to be paid out of the same fund, the portion specifically bequeathed shall first be raid to the legatee and the demonstrative legacy shall be paid out of the residue of the fund and, so far as the residue shall be deficient, out of the general assets of the testator. ...