NumberFormat: force the use of C locale when formatting numbers. Add some testcases. Fixes #486