Bug fix in DynamicAutoDiffCostFunction Add handling of constant parameter blocks. Change-Id: I8b2ea79f47e190604fc4bed27705798240689f71