Cosmetics.
Add execution checks.
Change the names of the builtin sqrt functions to follow the convention.

Add test ensuring the right derivatives were picked up.