Add list size to serialization.