AMENDED AND RESTATED TAX MATTERS AGREEMENT