Mipmapped texture arrays

Fixed TextureUtil to properly handle mipmapped texture 2d arrays and 3d textures