IVY FUND AMENDED AND RESTATED DISTRIBUTION AGREEMENT