document packing unpacking ndarray to/from string