serde: Data types and initial serialization