x86: AVX2 high bit-depth var_16x16

40->27 cycles on Haswell.
libx264 API usage example
Safety check against malicious high bit-depth input which could cause crash