Re-apply fixes for math test on MacoS. Add changes only in case of Vc_Scalar implementation