Allow a material to refer to any texture unit. Optimize setting batch's material renderstate by only looping through the used texture units. Note: the material editor in the editor does not support the extra units yet.