MathConst: improve interactions with complex and imaginary values.