IdentityTransform: make it possible not to split, fix bug assuming 3
axes
Some refactoring and bug fixing, mostly related to coordinate
transforms.