added support for bidi numeric shaping, ticket #18395

This is part of changes we did to support Bidi numeric shaping. Changes involve dojo stream and dijit stream. Reference ticket is [#18395](https://bugs.dojotoolkit.org/ticket/18395).
The changes we introduced uses and algorithm that convert numerals between Arabic and European languages.
Couldn't this be a switch() statement, or a lookup table, rather than a long sequence of if() statements?   At a minimum all the if() statements need to have braces to match dojo coding standards.