Fix stats for fields with invalid data.

Use masked arrays to store data, which allows specific a specific datum
to be marked as invalid.
Set the first values of 'computation_time' and
'sample_period' data as invalid.