Amendment II
A well regulated militia, being necessary to the security of a free state, the right of the people to keep and bear arms, shall not be infringed.
IMO, a good argument can be made the the phrase "the people" is not the same thing as all persons. It would make little sense in context. It seems likely to me that "the people" meant a specific group of people, most likely the citizens of the various states, especially since the same phrase appears in the tenth amendment. Otherwise, the founders would have said all persons have the right to keep and bear arms.
Amendment X
The powers not delegated to the United States by the Constitution, nor prohibited by it to the states, are reserved to the states respectively, or to the people.
It would be beyond the scope of any reasonable use of the phrase "the people" to think it included anyone not a citizen of one of the states, when applied to the tenth amendment. In fact, one could easily argue that "the people" deliberately excludes certain persons.
Note that amendment 4 uses the phrase "the people". Logically this infers that only citizens are covered by that right, but that amendment 5 uses the phrase "no person", implying that all persons are entitled to the protection of that amendment, including non-citizens.
Amendment IX
The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
.
Note the use of "the people" in amendment 9. Again, it would not be logical to infer that "the people" in that context was the sum total of all humanity.