Fix errors in corner cases of rising/falling factorials and gamma ratios raised by Rocco Romeo.