FORM OF AMENDED AND RESTATED STOCKHOLDERS AGREEMENT