d3d: Fix some vertex cache glitches, enable bounding box test

This fixes some issues observed running Senjou no Valkyria 3 on an older OpenGL 2 incapable video card.  Also adds minihashing from recent gles change.

-[Unknown]