Make cached derivatives return double in the double cast

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
Roll back to normal solver when Akasaka has numerical problems

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>