Add a custom serializer for LinkedHashSet.

This allows LinkedHashSet to be serialized even if it's not in the serialization policy file.

Change-Id: Ia777327e8fc3bb7f607571b32190542ec3e45778
Merge from master.