d3d9trace: Improve D3D9 shader size computation.

Still not bullet proof, but better than before.