Actually, it does: "arms" is a general term that describes weapons including the Ak47.
The problem with saying technological change invalidates the 2nd amendment, is that you have to also explain or accept that the 1st amendment only applies to letters written with a feather and a pool of ink.