AMENDED AND RESTATED AGREEMENT AND DECLARATION OF TRUST OF AIM STOCK FUNDS