BUG: If two local parameters refer to same global index, should update jacobian correctly.