[Support][MathExtras] Fix literal type issues.