An Active Set-Type Newton Method for Constrained Nonlinear Systems