Fixed BORDER_REFLECT and BORDER_REFLECT_101 extrapolation for case x > 2*maxV
Added workaround for Nvidia: take into account that 3-channel vector type takes 4*elem_size in local memory.
Fixed calculation of l_stack_size
disabled IPP acceleration for 3-channel norms and for CV_8S only for APPLE
Merge pull request #3185 from ElenaGvozdeva:ocl_norm
Merge pull request #3186 from akarsakov:ocl_fixes