On the use of nested decomposition for solving nonlinear multistage stochastic programs