allow radix to be specified for to_long() (fix #36)