Weakly nonlinear theory for a gate-type curved array in waves