graphics/glwrap: Add ActiveTexture wrapper
Add unit and layers fields to tex2d_array