add legacy toLocaleString method behaviour
Merge branch 'devel'