Fix excludeAll method to check if the object to be serialized is a
Collection type
Add test to assert that should exclude all primitive fields in a
collection type
Merge pull request #546 from dipold/fixExcludeAll

Fix excludeAll() method