check for errors in serialization and deserialization
Merge pull request #221 from influxdb/check-for-errors

check for errors in serialization and deserialization