Tweak to allow a simple match with atom->atom
Needed this for the simple case of a variable 'x' being derivative of 1