Array type encoding: Avoid unnecessary copying of data.
Add inttypes.h since we're using int_t types.
Text array encoding: Store all intermediate values into a single array
even of converting multi dimensional arrays.

Add integer encoding for text format.
Add float type conversions for text format.