fixed generated code, updated the call to finite_diff_grad from src/stan/model/util.hpp, added unit test for finite_diff_grad