Simplified complex_step, finite_step and is_complex_stepable
code for evaluating gradients of arrays works. Needs to be tested.