In era-avl.js, fixed a bug in timesCarry() and added some missing optimizations.