Branching bifurcations of vector envelope solitons and integrability of Hamiltonian systems