Document how functions with a kink are differentiated

Also add a warning in the documentation and in the preprocessor about the usage
of some functions (max, min, abs, sign, comparison operators) in a stochastic
context.

Closes #355
Possibility of restricting differentiate_forward_vars to some variables

Closes #351