make gamma(n) 10x faster for small integer arguments, so that it can be used without penalty instead of factorial for generic code that works for integers and non-integers (e.g. for #7033)