Export `_id` and `_type` fields to elasticsearch.

Preserves backwards compatibility.