More todos.
Added sqrt.
Change der and val from function to method.
Fix macro bug.

* Expansion didn't work with variables.
Fix bugs.

* Also introduce with-ad.
* TODO : Generalize use of with-ad
Work in progress.
Test spatial velocity for pure rotation.