Sprintf madness

Also fix a `-Wreorder` in `AffineMap`.