Rearrange output, fix transforms somewhat

Groundwork for outputting mixed group triangles. Transformations are
somewhat more correct; something weird is still going on with rotations
though.
Correctly handle mixed-group faces