Fix .ACCEPTS for Set, KeySet, Bag, and KeyBag.

Previously did not handle the type object case correctly.