Some fixes for nonrectangular box vector and dihedral wildcard matching.