Fix evaluation of log(p^a) -> a*log(p), if p>0 and a is real.