feat: add typed array helper
feat: add test coverage for typed arrays