First implementation, probably all wrong.
Doesn't quite compile.
It compiles.
Use Barycentre to simplify transforms.
Cleanup.
Lint.
After eggrobin's review.
Merge.
Merge pull request #274 from pleroy/DOFBarycentre

Add a Barycentre function for DegreesOfFreedom and use it to simplify the transforms.