Cython added template summed_variable and fixed regression in
statemonitor