Add error check for new OptimizerAlgo enum.
Add error check for new OptimizerAlgo enum.

robojukie/simbody,simbody/simbody,elkingtonmcb/simbody,scamille/simbody,chrisdembia/simbody,Gjacquenot/simbody,Gjacquenot/simbody,simbody/simbody,scamille/simbody,scamille/simbody,chrisdembia/simbody,robojukie/simbody,elkingtonmcb/simbody,chrisdembia/simbody,robojukie/simbody,Gjacquenot/simbody,elkingtonmcb/simbody