Adding guards to translate/rotate/scale to detect identity cases