experimental tool for writing data to typed arrays without knowing the length in advance