Fix for gauss and for linear functions with several "++" (e.g. x++y++z)