Safe serialization of doubles: NaN and infinite will be represented as null.
Merge remote-tracking branch 'origin/master' into scala_2.9.x_backport