Function to merge ammo added, along with an item combining routine (unused at the moment).
Fix for off-by-one error that was accidentally returning 0 (a valid index) if there's no objects that satisfy the criteria.