Fix wrong integer en- and decoding in protobuf-c-text library.

Also see https://developers.google.com/protocol-buffers/docs/proto#scalar.