Gunmod fix again

Fixes #9510
Fixes #6361
Fixes a third bug I ran into where you can't unload rail-mounted crossbows, it detached them instead.