Bug fixes involving new field logger_devices.type_id.