JSB GL: Improved support for typed arrays