Improved ordering of channels for EXR files.

Now we very robustly cluster "layers" together (with the unnamed layer
first, if it exists), and within each layer have a canonical RGBAZ
order.