Support sequence and map interface in serializer