Extended export to support exporting from trees with mixed feature types

Behaviour of new options is explained in the corresponding page in the manual, which this PR updates as well