Fixed item transferOwnership.

It now works for all possible items in the chest and it removes them
completely. I'm not sure I like dropping them on the ground though. I
might change it so that purchases try to go directly in the inventory
first.