Fixed missing side effects of secondary equations. When secondary equations have a side effect on main state in Ordinary Differential Equations integration, it is now preoerly taken into account. JIRA: MATH-960