Include type in serialization.