Serialize doubles and strings - with tests