The po po pulled you over for speeding (visual estimate) ... so he had RAS to pull you over?
The law allows him to act for "his safety" ...
The cop really wasn't as crazy as other cops I have encountered -- he seems rather calm.
So, they got a dismissal .. ie the judge thought you had no case at all.
I would have to read the complaint, answer (if any), motion to dismiss, objection to motion, and court memorandum of decision (if any).
The cop on the side of the road does not have to explain his actions but he tried to ... clearly they did state that they had RAS in their motion to dismiss, right?
The correct answer to his queries is : ask me in court...that's how the cop answered your questions.
If you need to tell him that you have a gun is a state law question (I don't know for the state in question).
At the end, then you did the smart thing.... shutting mouth .... and they let you go (yea!) ...
There are worse cases out there ... and yours could have been worse.
I assume that your audio was not heard by the court...a judge can only rule upon the facts and evidence in front of him.
Shoot a link to the court records ... it may clear some things up.