Correctly infer result type of cmath calls for non-complex types