qtscript: Move 'armed' property into weapons array, and make it actually work.
We now share the code to check this with the GUI code. This closes ticket:3178.