glsl: make sure UBO arrays are sized in ES