Issue 3679: Rewrite the autobeam logic to use GUILE fractions rather than moments

This makes the arithmetic considerably clearer.
Simplify extract-beam-exceptions