BUG Fixed handling of numbers in certain locales.

Fixes #2161

@lekoala, @jurriaan, @andrelohmann 

Do you like this solution?

Credit to @andrelohmann for beginning this solution.
Wouldn't a value of 12,12 fail this test? should it not use `$this->IsNumeric($value)`?