[PATCH 6/6] d3d10/effect: Fix d3d object creation for arrays of state objects.