Fix serialization of typed arrays.

Helps fix some of the issues around Buf/Blob types.