Ensuring detect_file also opens in ASCII mode.
Ensuring exporter opens file in ASCII mode.
Fixes bug in binary export due to incorrect counting of exported triangles when exporting nested geometry. Fixes #124.