Improve tgamma accuracy (bugs 2546, 2560, 5159, 15426).