Refactoring how bases are parsed in F#to_s and Z#to_s
Tweaking get_base()