don't reduce scalars
call get_theano_function with no args
fix tagging
add Gradient (tests pass)