Correction to file writer support for initial 'type' field