d3d8: Release the vertex declarations array when destroying the device.