HATTERAS CORE ALTERNATIVES TEI FUND, L.P. Amended and Restated Agreement of Limited Partnership Dated as of July 29, 2016