Fix issue #26

Attempt to fix issue #26 without reintroducing issue #23.
Fix issue #28: double parsing broken with certain locales

JSON defines the dot decimal as the separator, regardless of locale.
Fixes issue #28