py2llvm/fractions: use internal linkage for gcd function
Turn some examples into unit tests