Serialize common scientific data types to json/messagepack and back to original data types.