Update contact residual and Jacobian entries with scale factors

Tracker item: 3675