fixed floating-point parsing problems that happens in systems with non en-US cultures, related to #14

Tests now run fine on non en-US systems.