Fixes #348 by respecting the inventory stack limit

I pretty sure I did not miss a special case.
But it should be carefully tested for strange inventories, that no items get destroyed or duplicated.

This will enable 4 Acceleration Cards for DSU as the have 2 inventory slots.
If an inventory does not accept up to 96 items per operation, it will reduce the amount accordingly and return whatever is left.