updated tests for generated ODE code, added const to generated functors for functions, added pstream__ argument to solve_ode