Try to fix the problem that depending of the inputs strides, the outputs strides of dimensions of size 1 get strides that make it considered not aligned by the PyArray_ALIGNED macro.