egl: Return the correct array size in _eglFlattenArray.