d2/ppm: Handle reading into temporary file via macro specifying data type.