Reorder Rounding enum and recompile JavaScript

Also fix ExtendedDecimal and ExtendedFloat serialization. Rounding enum
now has the same ordinal values as Java's rounding mode constants
(except ZeroFiveUp, which is new)
fix and recompile JavaScript