Two possibilities IMO. First, was the Armalite 'worked on?' Did somebody file down the sear notch or the disconnector? If I had the gun, it woud be easier to diagnose. Does the Armalite trigger pull seem really light, smooth, and/or short?
The best way to check for a slam-fire is this: Field-strip the bolt and remove the extractor pin, extractor, extractor spring, and spring support (that plastic thingy). Reassemble bolt carrier assembly minus these parts. What this does it it increases the velocity at which the bolt carrier will close and therefore increase the likelyhood of a slam-fire.
At a range, lock the bolt carrer back with an empty magazine inserted in the gun. Pointing the gun in a safe direction, insert a live round into the chamber. Press the magazine release. If the gun goes off, it's a slam-fire issue. My first thought would be to replace the firing pin, possibly with a titanium one which is lighter.