Everything that you are thinking makes good sense to me except the courtesy part. Please continue to say the customary "hello's" and "goodbye's", that's just natural human decency. You didn't like being mistreated, why stoop to mistreating others?
You did well to talk to your boss about Gerry rather than to go to Gerry himself. In personal relations it's best to go directly to the other person, at work all things should be handled through the boss.
Document! Document! Document! Write a statement describing the situation and give it to your boss. Keep a copy, of course. Do not share the contents with your co-workers either verbally or by sharing your copy of the statement. "He said" "She said" doesn't hold water in a situation like this. Write it down and turn it in!
You are completely correct that if you are accepting of this situation that you will be losing ground and in line for more of the same. It's not unreasonable to want the air cleared. Just remember, it's different at work than in personal situations; at work Gerry answers to his boss and the boss transmits information to you. That means that an apology directly to you from Gerry probably won't happen, it's just not businesslike. Try not to look at that as a sign of disrespect, it may just be that the boss is trying to get things back on track and handled correctly. Remember, it was a misdirected communication that began this whole thing! Let Gerry talk to the boss and the boss talk to you; that will be the real victory.
In the future, accept direction only from your boss unless he directs (in writing or in a group meeting where you have reliable witnesses to his words) otherwise.
Best wishes to you!