Fixed all length restrictions on input arrays.
Made unittests pass if AVX or SSE absent.