Fixed test failure introduced with previous commit
Fixed collection serialization to ensure transformers are called even when elements are nested collections.

Note: for example, this means a set can contain dictionaries representing simple objects, and these dictionaries are serialized as plists.