Fix some ambiguities with use of pow().