Added routine for checking whether a transform is identity