[AVX512] Implemented integer conversions up/down with masking.
Added encoding tests.