Added type checking in Bag.add which reveals bug in shift around Bag vs Cell. Added test for type checking.