SI-7035 Centralize case field accessor sorting.

It is both burdensome and dangerous to expect callers
to reorder these. This was seen in the field permutation
in the unapply method; a regression in 2.10.0.
Merge pull request #1997 from retronym/ticket/7035

SI-7035 Centralize case field accessor sorting.