Added __slots__ to ViewInventory.

This makes it possible to use copy.copy() and copy.deepcopy() on ViewInventory.

Wrote __copy__ and __deepcopy__ tests for ViewInventory.