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.