Fix gun unloading (gives n bullets, rather than n stacks of bullets)

Addresses a bug reported by Wito which was caused by my inventory refactor.