Fix for legacy data bug. Added code to the writeValueToJson method for LegacyLongDataPoint and LegacyDoubleDataPoint. The properly converts legacy data when no aggregator is used.