diff: works with Double

Hi David,
I've attempted to program in diff.
It works for Double with tests, but I can't seem to get the @expand with UFunc to work.
It should be trivial for you, can you help?
Kenta