[fix] support typed arrays