Try properly converting doubles to strings for dict keys.