Use identity matrix to detect changes in rotate.

Fixes #270.