Compute size of FieldValue at runtime

The size was previously fixed at compile time. This runtime check should
be a better approximation of the actual size used.

Bug: 214288751
Test: atest statsd_test
Change-Id: I7eaee0a147e22b60f7b52ff78f7f900862731a51
4 files changed