(a) The militia of the United States consists of all able-bodied males at least 17 years of age and, except as provided in section 313 of title 32, under 45 years of age who are, or who have made a declaration of intention to become, citizens of the United States and of female citizens of the United States who are members of the National Guard.
(b) The classes of the militia are
(1) the organized militia, which consists of the National Guard and the Naval Militia; and
(2) the unorganized militia, which consists of the members of the militia who are not members of the National Guard or the Naval Militia.
So, Federal law defines the militia as being the entire population of the US with a few notable exceptions. Therefore, the 2nd Amendment applies to individuals. It ain't rocket science.
Not to mention all the crap at the State level. After all, every Law out there restricts, or infringes for those without thier dictionary handy, a protected Individual Right. Even those who would argue that a State can ignore the BoR, despite the plain wording and 10th Amendment, should be able to agree that the FedGov restrictions in the above link are blatantly un-Constitutional.
A law passed after the second amendment cannot logically define nor most especially limit it's scope. If this were not so, the Congress could just pass a law defining the militia as the police and National Guard, as the antis would have it. The second amendment states that the right belongs to the people, with no exceptions mentioned.