Fun with BigDecimal.
Stage 1: Convert BigDecimals in both directions.
Using the Avro decimal logical type for XML Schema DECIMAL types.

The fraction digits facet becomes the scale, and the total digits facet
becomes the precision.

Tests cover 75.3% of the code.