Made the detection of typed array constructors compatible with Phantom.js.