The town does not have the right to regulate ammo, so IMHO, unloaded firearm, is just that, the firearm does not have ammo in it. Does that mean they cannot charge you if you have a loaded magazine? No. But... It also does not mean you cannot sue them for civil rights infringement when the charge is dropped.