Fixed export to handle typed arrays