Added support for ImmutableCollection.
Better detection of deserializable interface type (no longer guessing).