I'm no legal scholar either. But it seems to me that the militia in it's early years served as a bulwark against tyranny in more than one way. Not only would they have the skill and arms to oppose a tyrant, but the militia was a replacement for the more traditional standing army which could be tyrannical in it's own right.