Fixed Static.getDouble32() so that it works with most valid float values.

Fixes #2760 and #2837.