I don't claim it's a collective right. You became a member of the militia as an individual and for that matter, being a member of the militia was not a right; it was an obligation, though not everyone had that obligation. Even now one is obliged to register for the draft but in the same way, not everyone has that obligation (at least, I don't think so). And when you go into the armed forces, you go in as yourself, as an individual.
I will admit it's no longer the popular view of the subject, including being obligated to serve.
Shoot low, sheriff. They're riding Shetlands!
Underneath the starry flag, civilize 'em with a Krag,
and return us to our own beloved homes!
Buy War Bonds.