fix: genus (tr.259)
chg: allow chinrem/farey for rational functions