Speed-up simple case for reduce_jacobian, other minor derivatives.py tweaks.