Fix NaN warnings and failures in test_serialize
Fix NaN warnings and failures in test_serialize

don't use empty, which can create a bunch of NaNs,
causing equality tests to fail.
ipython/ipython,ipython/ipython