Serialize/deserialize population

not tested