Add check for dynamic sparsity in Solver::Options::IsValid.
Add check for dynamic sparsity in Solver::Options::IsValid.

Dynamic sparsity should only be used with SPARSE_NORMAL_CHOLESKY.

Change-Id: I8dd33c05ec0337b3c13b547ecffe3aefc3e5ab12

entylop/ceres-solver,ysonggit/ceres-solver,kartikkumar/ceres-solver,timfel/ceres-bin,entylop/ceres-solver,whuaegeanse/ceres-solver,DougFirErickson/ceres-solver,stonier/ceres_solver,stonier/ceres_solver,whuaegeanse/ceres-solver,ysonggit/ceres-solver,stonier/ceres_solver,kartikkumar/ceres-solver,timfel/ceres-bin,timfel/ceres-bin,DougFirErickson/ceres-solver,ysonggit/ceres-solver,timfel/ceres-bin,kartikkumar/ceres-solver,DougFirErickson/ceres-solver,stonier/ceres_solver,whuaegeanse/ceres-solver,ysonggit/ceres-solver,entylop/ceres-solver,DougFirErickson/ceres-solver,entylop/ceres-solver,whuaegeanse/ceres-solver,kartikkumar/ceres-solver