fixed type-stability of chorner and polygamma (workaround for #7060)
NEWS update for polygamma