Improve BiDi handling of numbers and neutrals.
Add tests for mixed text direction.
Convert legacy span directions into levels.