Overcoming Singularity and Degeneracy in Neighboring Extremal Solutions of Discrete-Time Optimal Con