More tobi fixes

This contains several fixes and a small modification to data fetching from the daemon:
- fix parsing of "-nan" with the new in-tree locale-independent number parsing machinery
- provide hopefully exactly the same data via the daemon as via direct file access, at least on 64 bit machines