I think you made a good play.
You bet trying to win the pot and big money gets put in behind you.
We all have to remember that AA gets beat sometimes and to put it down here is good and the right play.
While you are out of position i think its worth betting here to make others make tough choices, as it is there are big hands behind you. Checking imo leaves you in a difficult position once money gets put in behind you.