BUG : don't use mutable objects as dictionary keys

Base key on the string version of the transform matrix

Closes #2828