Added FurtherMergeRamps and fixed bug in initial conversion to ramps when there are dynamics constraints