Implement PBObject format.

All unit tests pass (except int64 number encoding).