Henri Verbeet : wined3d: Move device context array functions to device.c.