MRG: nasty windows fixes

An absolutely horrible bug for MSVC casting from float to uint64 caused some
test failures on the buildbots.

Debugging, it did seem the code could work more robustly in a couple of cases.
Otherwise test for this horrible misfeature when present.

Some formatting changes and a fix for orderreddict testing when on Windows.

Delete temporary files to satisfy Windows' more stringent file attachments.