Formulation and solution strategies for nonparametric nonlinear stochastic programs, with an application in finance