fix #810: move integral case of pow_abs back to pow