ivy: handle general input base for big ints and rationals

Use the base arugment to Int.SetString (not present for Rat, but we can work around that).

Output is still limited to the common bases.