Fix spurious overflows in tgamma/lgamma.  Update tests to verify.
Thanks to Rocco Romeo for these.