Detect typed arrays support. Fixes #269