write serialization working

Fixed a typo pointed out by Andrew West with the floating point field
types