added test for collections of polymorphic types and then fixed so it passes