Add tests for roundtripping typed arrays