use pow, powf instead of powi. fixes #6506

LLVM seems to be able to optimize small constant powers here too.
the pow intrinsic had the same bug as powi.
Merge branch 'master' of github.com:JuliaLang/julia