Move Expression::integralPromotions into a free function
Merge pull request #3216 from yebblies/integralPromotions

[DDMD] [refactor] Move Expression::integralPromotions into a free function