Made sensor readings more efficient by compacting serialization for primitive / simple types. Added some test cases for ObjectSerializer.