Fix issue 1668 - std.stream readf can't read int, nan, inf as floats

An ancient issue- I know this will likely be replaced but wanted a relatively non-critical item to cut my teeth on.

https://d.puremagic.com/issues/show_bug.cgi?id=1668