Use dependecies for residual UO computation

closes #3984