Fixed a bug with inventory copying.

The operation used in copying items didn't make sure the items retained the same invlet.