math: fix exception behaviour of expm1l.c on inf and nan