Fix pow of zero and infinity to large powers.